@extends('admin.layout.basic')
@section('content')
        <!-- 面包屑 -->
@include('admin.layout.breadcrumb')
<div class="wrapper wrapper-content animated fadeInUp">


  <div class="row">



    <div class="col-lg-6">
      <div class="ibox ">
        <div class="ibox-title">
          <h5>{{ trans('admin/message.drag_lsit_title') }}</h5>
        </div>
        <div class="ibox-content">

          <p class="m-b-lg">
            {{ trans('admin/message.drag_change_message') }}
          </p>

          <div class="dd" id="nestable">

          </div>
          <div class="m-t-md">

          </div>

          <div class="form-group">
            <div class="  text-center">
              <button type="button" onclick="admin_resource_list.saveSortedCategory()" class="btn btn-w-m btn-success">{{ trans('admin/message.update') }}</button>
            </div>
          </div>
        </div>
      </div>
    </div>


    <div class="col-lg-6">
      <div class="ibox ">
        <div class="ibox-title">
          <h5>资源编辑</h5>
        </div>
        <div class="ibox-content"  >

          <form method="get" id="resourceform" class="form-horizontal">

            <input type="hidden" name="id" id="id">
            <input type="hidden" name="parent_id" id="parent_id">

            <div class="form-group">
              <div class="col-sm-8 col-sm-offset-2">
                <div id="com_message"  name="com_message"  class="text-danger text-center" >
                </div>
              </div>
            </div>


            {{--'auth_resource_modal_title'=>'资源编辑',--}}
            {{--'auth_resource_model_res_name'=>'资源名称',--}}
            {{--'auth_resource_model_url'=>'地址',--}}
            {{--'auth_resource_model_r_icon'=>'图标',--}}
            {{--'auth_resource_model_order_index'=>'排序',--}}
            {{--'auth_resource_model_parent_name'=>'所属资源',--}}

            <div class="form-group">
              <label class="col-sm-2 control-label">{{trans("admin/message.auth_resource_model_res_name")}}*</label>
              <div class="col-sm-10"><input type="text" required name="name" class="form-control"></div>
            </div>

            <div class="hr-line-dashed"></div>
            <div class="form-group"><label class="col-sm-2 control-label">{{trans("admin/message.auth_resource_model_parent_name")}}</label>
              <div class="col-sm-8">
                <input type="text" id="parent_name" name="parent_name" disabled   class="form-control">
              </div>
              <button type="button" onclick="admin_resource_list.openModel()" class="btn btn-success">{{trans("admin/message.chose")}}</button>
            </div>

            <div class="hr-line-dashed"></div>
            <div class="form-group"><label class="col-sm-2 control-label">{{trans("admin/message.auth_resource_model_url")}}*</label>
              <div class="col-sm-10"><input required class="form-control" name="res_url"> </div>
            </div>

            <div class="hr-line-dashed"></div>
            <div class="form-group"><label class="col-sm-2 control-label">{{trans("admin/message.auth_resource_model_r_icon")}}</label>
              <div class="col-sm-10">

                {{--<select  class="form-control">--}}
                    {{--<option> <i class="fa fa-angellist"></i></option>--}}

                {{--</select>--}}
                <input  class="form-control" name="r_icon"> </div>
            </div>

            <div class="hr-line-dashed"></div>
            <div class="form-group">
              <div class="  text-center">
                <button type="button" onclick="admin_resource_list.submitCategory()" class="btn btn-w-m btn-success">{{ trans('admin/message.submit') }}</button>
                <button type="button" onclick="admin_resource_list.resetCategory()"  class="btn btn-w-m btn-warning">{{ trans('admin/message.reset') }}</button>
                <button id="deleteBtn" type="button" onclick="admin_resource_list.delete()"  class="btn btn-w-m btn-danger">{{ trans('admin/message.delete') }}</button>
              </div>
            </div>
          </form>

        </div>

      </div>
    </div>

    @include("admin.auth.modules.resource_modify_modal")


  </div>
</div>
@endsection


